<template lang="html">
  <div class="vuex">
    vuex {{ $store.state.count }}
    <button type="button" name="button" @click="increment">增加</button>
    <button type="button" name="button" @click="decrement">删减</button>
  </div>
</template>

<script>
import { mapActions } from 'vuex'
export default {
  methods: mapActions([
    'increment',
    'decrement'
  ])
}
</script>

<style lang="css">
</style>
